/*
 * ${beanName}Service.java created on ${config.createTime?string("yyyy-MM-dd")} by ${config.createUser}
 */
package ${config.pack}.service;

import ${config.pack}.entity.${beanName};
import ${config.pack}.entity.${beanShowVo};
import ${config.pack}.entity.${beanQueryVo};
import org.eking.framework.common.BusinessMap;
import org.eking.framework.common.Pager;

/**
 * ${config.beanDescription} Service 接口
 * TODO javadoc for ${config.pack}.service.${beanName}Service
 * @Copyright: ${config.copyright}
 * @author: ${config.createUser}
 * @since: ${config.createTime?string("yyyy-MM-dd HH:mm:ss")}
 */
public interface ${beanName}Service {
	
	/**
	 * 获取查询分页对象
	 * @creator: ${config.createUser}
	 * @createDate: ${config.createTime?string("yyyy-MM-dd")}
	 * @modifier:
	 * @modifiedDate:
	 * @param pager
	 * @param ${simpleBeanName}
	 * @return
	 * @throws Exception
	 */
	public Pager<${beanShowVo}> search(Pager<${beanShowVo}> pager, ${beanQueryVo} ${simpleBeanName}QueryVo) throws Exception;
	
	/**
	 * 新增${config.beanDescription}
	 * @creator: ${config.createUser}
	 * @createDate: ${config.createTime?string("yyyy-MM-dd")}
	 * @modifier:
	 * @modifiedDate:
	 * @param ${simpleBeanName}
	 * @return
	 * @throws Exception
	 */
	public BusinessMap create(${beanName} ${simpleBeanName}) throws Exception;
	
	/**
	 * 判断是否存在
	 * @creator: ${config.createUser}
	 * @createDate: ${config.createTime?string("yyyy-MM-dd")}
	 * @modifier:
	 * @modifiedDate:
	 * @param ${simpleBeanName}${simpleBeanName} ${config.beanDescription}
	 * @return
	 * @throws Exception
	 */
	public boolean isExists(${beanName} ${simpleBeanName}) throws Exception;
	
	/**
	 * 根据ID获取${config.beanDescription}
	 * @creator: ${config.createUser}
	 * @createDate: ${config.createTime?string("yyyy-MM-dd")}
	 * @modifier:
	 * @modifiedDate:
	 * @param ${beanId}
	 * @return
	 * @throws Exception
	 */
	public ${beanName} getById(String ${beanId}) throws Exception;
	
	/**
	 * 编辑${config.beanDescription}
	 * @creator: ${config.createUser}
	 * @createDate: ${config.createTime?string("yyyy-MM-dd")}
	 * @modifier:
	 * @modifiedDate:
	 * @param ${simpleBeanName} ${config.beanDescription}
	 * @return
	 * @throws Exception
	 */
	public BusinessMap edit(${beanName} ${simpleBeanName}) throws Exception;
	
	/**
	 * 根据ID删除${config.beanDescription}
	 * @creator: ${config.createUser}
	 * @createDate: ${config.createTime?string("yyyy-MM-dd")}
	 * @modifier:
	 * @modifiedDate:
	 * @param ${beanId}
	 * @return
	 * @throws Exception
	 */
	public boolean delete(String ${beanId}) throws Exception;
	

}
